﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LoginRegistrationControl.ascx.cs"
    Inherits="PB.Airsoft.Web.Acount.controls.LoginRegistrationControl" %>

<div>
    <div id="LoginPanel">
        <h3>Login</h3>
        <div class="lbl lblLoginEmail">
            <asp:Label runat="server" ID="lblLoginEmail" Text="Email:" AssociatedControlID="txtLoginEmail" />
        </div>
        <div class="txt txtLoginEmail">
            <asp:TextBox runat="server" ID="txtLoginEmail" />
        </div>
        <div class="lbl lblLoginPassword">
            <asp:Label runat="server" ID="lblLoginPassword" Text="Password:" AssociatedControlID="txtLoginPassword" />
        </div>
        <div class="txt txtLoginPassword">
            <asp:TextBox runat="server" ID="txtLoginPassword" />
        </div>
    </div>
    <div id="RegistrationPanel" style="display:none">
        <h3>Registration</h3>
        <div class="lbl lblRegistrationName">
            <asp:Label runat="server" ID="lblRegistrationName" Text="Name:" AssociatedControlID="txtRegistrationName" />
        </div>
        <div class="txt txtRegistrationName">
            <asp:TextBox runat="server" ID="txtRegistrationName" />
        </div>
        <div class="lbl lblRegistrationEmail">
            <asp:Label runat="server" ID="lblRegistrationEmail" Text="Email:" AssociatedControlID="txtRegistrationEmail" />
        </div>
        <div class="txt txtRegistrationEmail">
            <asp:TextBox runat="server" ID="txtRegistrationEmail" />
        </div>
        <div class="lbl lblRegistrationPassword">
            <asp:Label runat="server" ID="lblRegistrationPassword" Text="Password:" AssociatedControlID="txtRegistrationPassword" />
        </div>
        <div class="txt txtRegistrationPassword">
            <asp:TextBox runat="server" ID="txtRegistrationPassword" />
        </div>
    </div>
    <div class="lbtn btnLogin">
        <asp:Button runat="server" ID="btnLogin" Text="Login" OnClick="btnLogin_Click" OnClientClick="btnLogin_Click();" />
    </div>
    <div class="lbtn btnRegistration">
        <asp:Button runat="server" ID="btnRegistration" Text="Registration" OnClick="btnRegistration_Click" OnClientClick="btnRegistration_Click();" />
    </div>
</div>

<script type="text/javascript">
    function btnLogin_Click()
    {
        $('#LoginPanel').animate({height: "show"}, 1000);
        $('#RegistrationPanel').animate({height: "hide"}, 1000);
    }
    function btnRegistration_Click()
    {
        $('#LoginPanel').animate({height: "hide"}, 1000);
        $('#RegistrationPanel').animate({height: "show"}, 1000);
        return true;
    }
    
    $(document).ready(btnLogin_Click);
</script>